package AbstractFactoryDemo.example.listfactory;

import AbstractFactoryDemo.example.factory.Link;

/**
 * @author zsh
 * @Description
 * @create 2022-07-03 20:01
 */
public class ListLink extends Link {

    public ListLink(String caption, String url) {
        super(caption, url);
    }

    @Override
    public String makeHTML() {
        return "  <li><a href=\"" + url + "\">" + caption + "</a></li>\n";
    }

}
